<!doctype html>
<html>
<head>
    <meta charset="UTF-8" />
    <title>社区对接偏远山村&nbsp;&nbsp;&nbsp;吃好的又能帮他们</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" />
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
    <link rel="icon" type="image/x-icon" href="__PUBLIC__/Wx/img/icon-my02.png" />
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Wx/css/base.css" />
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Wx/css/index.css" />
</head>
<body>
<div class="group">
    <form action="__MODULE__/List/search/" method="get" enctype="multipart/form-data">
        <div id="header">
            <div class="logo"></div>
            <div class="search"><input name="keyword" type="text" placeholder="搜索特产"/><i></i></div>
        </div>
    </form>

    <div class="swipePanel">
        <div class="swipe">
            <ul id="slider">
                <!--<li><a href="http://www.xiangtws.com/index.php/Wx/WishGroup/index.html"><img src="__PUBLIC__/Wx/images/banner1.jpg" alt='' /></a></li>-->
                <!--<li><a href="http://www.xiangtws.com/Wx/Prodetail/Index/id/557/"><img src="__PUBLIC__/Wx/images/banner9.jpg" alt='' /></a></li>-->
                <li><a href="__MODULE__/Partner/index"><img src="__PUBLIC__/Wx/images/banner11.jpg" alt='' /></a></li>
                <li><a href="http://www.xiangtws.com/index.php/Wx/Prodetail/index/id/418/"><img src="__PUBLIC__/Wx/images/banner5.jpg" alt='' /></a></li>
                <!--<li><a href="http://www.xiangtws.com/index.php/Wx/Prodetail/index/id/408/"><img src="__PUBLIC__/Wx/images/banner6.jpg" alt='' /></a></li>-->
                <!--<li><a href="#"><img src="__PUBLIC__/Wx/images/banner8.jpg" alt='' /></a></li>-->
                <li><a href="/Wx/Prodetail/index/id/553/"><img src="__PUBLIC__/Wx/images/banner-ht.jpg" alt='' /></a></li>
            </ul>
            <div id="pagenavi">
                <a href="javascript:void(0);" class="active">1</a>
                <a href="javascript:void(0);">2</a>
                <a href="javascript:void(0);">3</a>
                <!--<a href="javascript:void(0);">4</a>-->
            </div>
        </div>
    </div>
    <div class="news"> <span>社区头条</span>
        <div id="marquee">
            <ul style="height: 1200px;">
                <li><a href="#">
                    <p><i class="new">达人食谱</i>告诉你夏天必吃的十种菜，又好吃又营养</b></p>
                </a></li>
                <li><a href="#">
                    <p><i class="hot">拼团达人</i>恭喜，张三成功抢到<b>苏泊尔4L电饭煲</b></p>
                </a></li>
                <li><a href="#">
                    <p>小明刚刚兑换了500g装洗衣液<b>兔小曼价格只需要5元</b></p>
                </a></li>
                <li><a href="#">
                    <p>小明刚刚兑换了500g装洗衣液<b>兔小曼价格只需要5元</b></p>
                </a></li>
            </ul>
        </div>
        <!--<div class="pic"><img src="__PUBLIC__/Wx/images/pic01.jpg"/></div>-->
    </div>
    <div class="house">
        <div class="tit"><img src="__PUBLIC__/Wx/img/icon01.png"/>
            <span>我的社区</span>
            <if condition="$user.c_id gt 0">
                <if condition="strtoupper($community['title']) neq ''">
                    <em style="font-size: 13px;">{$community['title']}</em>
                    <else />
                    <em onClick="window.location.href='__MODULE__/Authentication/index/do_what/binding/'">未绑定小区</em>
                </if>
            </if>
            <i>社区扶贫餐厅</i>
        </div>
    </div>

    <!--<div class="link"><a href="<?=U('WishGroup/index')?>"><img src="__PUBLIC__/Wx/images/pic19.jpg"/></a></div>-->
    <div class="exchange">
        <!--<div class="tit">-->
            <!--<img src="__PUBLIC__/Wx/img/icon02.png"/><span>社区会员店</span>-->
            <!--<if condition="strtoupper($store['storename']) neq ''">-->
                <!--<i  onClick="window.location.href='__MODULE__/Stores/index/s_id/{$store['id']}/'">{$store['storename']}</i></if>-->
        <!--</div>-->
        <if condition="strtoupper($store['storename']) neq ''">
        <div class="tit"><img src="__PUBLIC__/Wx/img/icon02.png"/><span>社区会员店</span><i>{$store['storename']}</i></div>
        <div class="housedh">
            <a href="__MODULE__/Stores/index/s_id/{$store['id']}/">
                <div class="pic"><img src="__PUBLIC__/Wx/images/pic41.jpg"/></div>
                <h2>店铺积分兑豪礼</h2>
                <p>一起来挑选心仪产品带回家</p>
            </a>
        </div>
        </if>


        <div class="list">
            <div class="left">
                <a href="__MODULE__/Foretaste/">
                    <h2>试吃试用</h2>
                    <!--<h3>参选扶贫大使恩施3日免费游</h3>-->
                    <p><img src="__PUBLIC__/Wx/images/pic03.jpg"/></p>
                </a>
            </div>
            <div class="right">
                <div class="top">
                    <!--<a href="__MODULE__/Foretaste/index">-->
                    <!--<a href="__MODULE__/Stores/index/s_id/{$store['id']}/">-->
                    <a href="javascript:;">
                        <!--<h2>积分兑换</h2>-->
                        <!--<h3>300元+1000积分兑换</h3>-->
                        <p><img src="__PUBLIC__/Wx/images/pic04.jpg"/></p>
                    </a>
                </div>
                <div class="bot">
                    <a href="">
                        <h2>到店8点兑菜</h2>
                        <h3>店铺限时兑换生鲜</h3>
                        <p><img src="__PUBLIC__/Wx/images/pic05.jpg"/></p>
                    </a>
                </div>
            </div>
            <div class="clear"></div>
        </div>

    </div>
    <div class="collage">
        <div class="tit"><img src="__PUBLIC__/Wx/img/icon03.png"/><span>乡村拼团</span><!--<b class="brand">品牌支持</b>--><a href="__MODULE__/List/index">查看更多>></a></div>
        <div class="community">
            <div class="tab">
                <span class="on">全部</span>
                <span>即将成团</span>
                <span>最新开团</span>
                <span>即将开团</span>
            </div>
            <div id="tab-content">
                <!--下面是全国拼团，绑定社区的有门店拼团-->
                <div class="block">
                    <ul id="list">
                        <volist name="shoparr" id="vo">
                            <li> <a href="__MODULE__/Prodetail/index/id/{$vo.id}/">
                                <div class="pic" style="background-size: 100% 170px;height:170px;overflow: hidden;background-image:url({$vo.f_img});background-repeat: no-repeat;background-position:center center;"><!--<img src=""/>--></div>
                                <div class="intro">
                                    <h2>
                                        <eq name="vo.type" value="0"><b class="xc">乡村</b>
                                            <else/>
                                            <b class="md">门店</b></eq>
                                        <!--<?=msubstr($vo['title'],20)?> -->
                                        {$vo.title}
                                        {$vo.u_num}{$vo.unit}
                                    </h2>
                                    <h3><em>￥<b>{$vo.actual_price}</b></em>
                                        <gt name="vo.neednum" value="0"><i>还差<b>{$vo.neednum}</b>份成团</i></gt>
                                    </h3>
                                    <p><b><img src="{$vo.f_avatar}"/></b><i>{$vo.f_realname}</i><!--<em>已售<gt name="vo.actual_num" value="0">{$vo.actual_num}<else/>0</gt>份</em>--><em>已售{$vo['actual_num']+$vo['v_num']}份</em></p> 
                                </div>
                            </a> </li>
                        </volist>
                        <!--<div class="clear"></div>-->
                        <div class="clear"></div>
                        <div class="more" onClick="window.location='__MODULE__/List/index'">查看更多>></div>
                    </ul>
                    <!--<div class="loadMore ">向下滑动<img src="__PUBLIC__/Wx/img/more.png"/>加载更多</div>-->
                </div>
                <!--下面是即将成团-->

                <div class="block" style="display:none;">
                    <ul>
                        <volist name="needgoodarr" id="vo">
                            <li> <a href="__MODULE__/Prodetail/index/id/{$vo.sg_id}/">
                                <div class="pic" style="background-size: 100% 170px;height:170px;overflow: hidden;background-image:url({$vo.f_img});background-repeat: no-repeat;background-position:center center;"><!--<img src=""/>--></div>
                                <div class="intro">
                                    <h2>
                                        <eq name="vo.type" value="0"><b class="xc">乡村</b><else/>
                                            <b class="md">门店</b>
                                        </eq>
                                        {$vo.title} {$vo.u_num}{$vo.unit}</h2>
                                    <h3><em>￥<b>{$vo.actual_price}</b></em><i>还差<b>{$vo.neednum}</b>份成团</i></h3>
                                    <p><b><img src="{$vo.f_avatar}"/></b><i>{$vo.f_realname}</i><!--<em>已售<gt name="vo.actual_num" value="0">{$vo.actual_num}<else/>0</gt>份</em>--><em>已售{$vo['actual_num']+$vo['v_num']}份</em></p>
                                </div>
                            </a> </li>
                        </volist>
                        <div class="clear"></div>

                    </ul>
                    <!--<div class="more">向下滑动<img src="__PUBLIC__/Wx/img/more.png"/>加载更多</div>-->
                </div>

                <!--下面是最新上架-->
                <div class="block" style="display:none;">
                    <ul>
                        <volist name="newshoparr" id="vo">
                            <li> <a href="__MODULE__/Prodetail/index/id/{$vo.id}/">
                                <div class="pic" style="background-size: 100% 170px;height:170px;overflow: hidden;background-image:url({$vo.f_img});background-repeat: no-repeat;background-position:center center;"><!--<img src=""/>--></div>
                                <div class="intro">
                                    <h2>
                                        <eq name="vo.type" value="0"><b class="xc">乡村</b>
                                            <else/>
                                            <b class="md">门店</b></eq>
                                        {$vo.title} {$vo.u_num}斤</h2>
                                    <h3><em>￥<b>{$vo.actual_price}</b></em>
                                        <gt name="vo.neednum" value="0"><i>还差<b>{$vo.neednum}</b>份成团</i></gt>
                                    </h3>
                                    <p><b><img src="{$vo.f_avatar}"/></b><i>{$vo.f_realname}</i><!--<em>已售<gt name="vo.actual_num" value="0">{$vo.actual_num}<else/>0</gt>份</em>--><em>已售{$vo['actual_num']+$vo['v_num']}份</em></p>
                                </div>
                            </a> </li>
                        </volist>
                        <!--<li> <a href="__MODULE__/Prodetail/index">
                          <div class="pic"><img src="__PUBLIC__/Wx/images/pic06.jpg"/></div>
                          <div class="intro">
                            <h2><b class="xc">乡村</b>乡村自种青黄瓜 2斤</h2>
                            <h3><em>￥<b>23.8</b></em><i>还差<b>2</b>份成团</i></h3>
                            <p><b><img src="__PUBLIC__/Wx/images/pic02.jpg"/></b><i>江训才</i><em>已售212份</em></p>
                          </div>
                          </a> </li>-->
                        <div class="clear"></div>
                    </ul>
                    <!--<div class="more">向下滑动<img src="__PUBLIC__/Wx/img/more.png"/>加载更多</div>-->
                </div>
                <!--下面是即将上架-->
                <div class="block" style="display:none;">
                    <ul>

                        <volist name="willgood" id="vo">
                            <li> <a href="__MODULE__/Prodetail/index/id/{$vo.id}/">
                                <div class="pic" style="background-size: 100% 170px;height:170px;overflow: hidden;background-image:url({$vo.f_img});background-repeat: no-repeat;background-position:center center;"><!--<img src=""/>--></div>
                                <div class="intro">
                                    <h2>
                                        <eq name="vo.type" value="0"><b class="xc">乡村</b><else/>
                                            <b class="md">门店</b>
                                        </eq>
                                        {$vo.title} {$vo.u_num}{$vo.unit}</h2>
                                    <h3><span>上架时间：<b>{$vo.starttime|date="Y-m-d",###}</b></span></h3>
                                    <p><b><img src="{$vo.f_avatar}"/></b><i>{$vo.f_realname}</i><em>100人关注</em></p>
                                </div>
                            </a> </li>
                        </volist>

                        <!--<li> <a href="__MODULE__/Article/index">
                          <div class="pic"><img src="__PUBLIC__/Wx/images/pic06.jpg"/></div>
                          <div class="intro">
                            <h2><b class="xc">乡村</b>乡村自种青黄瓜 2斤</h2>
                            <h3><span>上架时间：<b>2018-05-21</b></span></h3>
                            <p><b><img src="__PUBLIC__/Wx/images/pic02.jpg"/></b><i>江训才</i><em>100人关注</em></p>
                          </div>
                          </a> </li>-->
                        <div class="clear"></div>
                    </ul>
                    <!--<div class="more">向下滑动<img src="__PUBLIC__/Wx/img/more.png"/>加载更多</div>-->
                </div>
            </div>
        </div>
    </div>
    <div id="footer"> <a href="http://www.xiangtws.com/index.php/Wx/Index/index.html" class="on">
        <div class="pic"><img src="__PUBLIC__/Wx/img/icon-index02.png"/></div>
        <div class="topic">我的社区</div>
    </a> <a href="http://news.xiangtws.com/Wx/Village/country/adid/{$Think.session.openid}/nickname/{$Think.session.nickname}/">
        <div class="pic"><img src="__PUBLIC__/Wx/img/icon-village.png"/></div>
        <div class="topic">最美乡村</div>
    </a> <a href="http://news.xiangtws.com/index.php/Wx/Article/stories_ls/">
        <div class="pic"><img src="__PUBLIC__/Wx/img/icon-article.png"/></div>
        <div class="topic">乡村夜话</div>
    </a> <a href="http://www.xiangtws.com/index.php/Wx/Product/index.html">
        <div class="pic"><img src="__PUBLIC__/Wx/img/icon-landmark.png"/></div>
        <div class="topic">地标产品</div>
    </a> <a href="http://www.xiangtws.com/index.php/Wx/User/user">
        <div class="pic"><img src="__PUBLIC__/Wx/img/icon-my.png"/></div>
        <div class="topic">会员中心</div>
    </a> </div>
</div>

<!--检测如果有新的成功拼团或者试吃，且绑定小区无店铺-->
<div class="hint03" id="hint03" style="<eq name="recommend" value="0">display:block;<else/>display:none;</eq>">
<div class="shadow" style="height: 160px;margin-top: -80px; ">
    <div class="close" onClick="document.getElementById('hint03').style.display='none';"></div>
    <div class="succeed">
        <h2>温馨提示</h2>
        <p>恭喜你拼团/试吃成功</p>
        <h3 style="text-align:center;">本产品为自提产品，社区二次分拣<br/>
            你所在小区暂无店铺，请您推荐店铺</h3>
        <p style="padding:0; height:40px; position:absolute; width:100%; bottom:0;">
            <input type="button" value="去推荐" class="right"   onclick="window.location.href='__MODULE__/Recommend/index/'"/>
            <input type="button" value="取消" class="left" id="close" onClick="document.getElementById('hint03').style.display='none';" />
        </p>
    </div>
</div>
</div>
<style type="text/css">
    .hint03{ position:fixed; width:100%; max-width:640px; height:100%; bottom:0px; background:rgba(0,0,0,0.3); overflow:hidden; zoom:1; z-index:999; display:none;}
    .hint03 .shadow{ position:absolute; width:80%; left:10%; background:#fff; border-radius:4px; top:50%; margin-top:-75px; height:150px;overflow:hidden; text-align:center}
    .hint03 .shadow .close{ display:block; width:18px; height:18px; background:url(__PUBLIC__/Wx/img/close.png) no-repeat center center; background-snt .shadoize:18px 18px; position:absolute; top:10px; right:10px; text-indent:-9999em;}
    .hint03 .shadow .succeed h2{ font-weight:normal; text-align:left; font-size:16px; color:#333; border-bottom:1px #e5e5e5 solid; padding:10px; }
    .hint03 .shadow .succeed p{ font-size:14px; color:#333; padding:10px 10px 0 10px;;}
    .hint03 .shadow .succeed h3{ font-weight:normal; font-size:12px; color:#ff4400;padding:4px 10px 0 10px;}
    .hint03 .shadow .succeed  p input { display:inline-block; appearance:none; -webkit-appearance:none; height:40px; background:#ccc; font-size:12px; color:#666; border-radius:0;  width:50%;border-radius:0; float:left;}
    .hint03 .shadow .succeed  p input.right { background: #ff4400; color: #fff;}
</style>

<script type="text/javascript" src="__PUBLIC__/Wx/js/jquery-1.9.1.js"></script>
<script type="text/javascript" src="__PUBLIC__/Wx/js/kxbdSuperMarquee.js"></script>
<script type="text/javascript">
    $(function(){
        $('#marquee').kxbdSuperMarquee({
            isEqual:false,
            distance:20,
            time:2,
            //btnGo:{up:'#goU',down:'#goD'},
            direction:'up'
        });
    });

</script>
<script type="text/javascript" src="__PUBLIC__/Wx/js/touchScroll.js"></script>
<script type="text/javascript" src="__PUBLIC__/Wx/js/touchslider.js"></script>
<script type="text/javascript">
    var active = 0, as = document.getElementById('pagenavi').getElementsByTagName('a');
    for ( var i = 0; i < as.length; i++) {
        (function() {
            var j = i;
            as[i].onclick = function() {
                t.slide(j);
                return false;
            };
        })();
    }
    var t = new TouchSlider({
        id : 'slider',
        speed : 600,
        timeout : 2000,
        before : function(index) {
            as[active].className = '';
            active = index;
            as[active].className = 'active';
        }
    });
</script>
<script type="text/javascript">
    $('.tab span').click(function(){
        $(this).addClass("on").siblings().removeClass()
        $("#tab-content >.block").hide().eq($('.tab span').index(this)).show();
    });
</script>
<script type="text/javascript">
/*
    //瀑布流
    var page=1;
    $(function () {
        $(window).scroll(function () {
            if (($(document).height() - $(this).scrollTop() - $(this).height())<1){
                setTimeout(function(){
                    //alert("getMore");
                    page++;
                    getMore();
                },1000);
            }
        });
    })
    var show_no=0;
    function getMore(){
        $.ajax({
            type : "GET",
            dataType : "json",
            url: "__MODULE__/Index/index/page/"+page+"/",
            async:false,
            success: function(data){
                var html='';
                if(data.length>0){
                    for(var i=0;i<data.length;i++){

                        html=html+"<li><a href='__MODULE__/Prodetail/index/id/"+data[i].id+"/'><div class='pic' style='background-size: 100% 170px;height:170px;overflow: hidden;background-image:url("+data[i].f_img+");background-repeat: no-repeat;background-position:center center;'></div><div class='intro'><h2>";
                        if(data[i].type==0){
                            html=html+"<b class='xc'>乡村</b>";
                        }else{
                            html=html+"<b class='md'>门店</b>";
                        }
                        html=html+data[i].title+" "+data[i].u_num+data[i].unit+"</h2><h3><em>￥<b>"+data[i].actual_price+"</b></em>";
                        if(data[i].neednum>0)html=html+"<i>还差<b>"+data[i].neednum+"</b>份成团</i>";
                        html=html+"</h3><p><b><img src='"+data[i].f_avatar+"'/></b><i>"+data[i].f_realname+"</i><em>已售";
                        //if(data[i].actual_num>0){html=html+data[i].actual_num+data[i].v_num;}else{html=html+"0";}
						if(data[i].actual_num==null)data[i].actual_num=0;
                        html+=parseInt(data[i].actual_num)+parseInt(data[i].v_num);
                        html=html+"份</em></p></div></a></li>";

                    }//end for
                    $("#list").append(html);//添加新的
                }else{
                    $("#list").append("<div class='clear'></div>");
                    if(show_no==0){
                        $("#list").parent().append("<div class='more '>没有了</div>");
                        show_no++;
                    }else{}

                    //$(".loadMore").text("没有了！");<div class='loadMore '>没有了</div>
                }
            }
        });//end ajax
    }//end fun
*/
</script>

</body>
</html>